package com.haiwen.boot.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class commentReply {
    private Integer replyuserId;

    private Integer blogId;

    private Integer commentId;

    private Integer userId;

    private Integer likes;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    private Integer state;
    private String content;
    public commentReply(){}
    public commentReply(Integer replyuserId,Integer blogId, Integer commentId, Integer userId,
                        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
                        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
                                Date createtime,String content) {
        this.replyuserId=replyuserId;
        this.blogId = blogId;
        this.commentId = commentId;
        this.userId = userId;
        this.createtime=createtime;
        this.content = content;
    }
}
